<%@ page contentType="text/html; charset=utf-8" %>
<%@ page import="com.fick.hibernate.model.*"%>
<%@ page import="com.fick.hibernate.dao.*"%>
<%@ taglib uri="http://fckeditor.net/tags-fckeditor" prefix="FCK"%>
<html>
	<head>
		<style>
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}

a.page:link {
	color: #FFFFFF;
	text-decoration: none;
}

a.page:hover {
	color: #FF00FF;
	text-decoration: none;
}

a.page          .:visited {
	color: #FFFFFF;
	text-decoration: none;
}

a.page:active {
	color: #FF00FF;
	text-decoration: none;
}

.STYLE2 {
	color: #666666
}

body {
	margin: 0px;
	font: normal 12px "宋体", "Verdana", "Arial", "Helvetica", "sans-serif";
	SCROLLBAR-FACE-COLOR: rgb(31, 111, 191);
	SCROLLBAR-HIGHLIGHT-COLOR: rgb(31, 111, 191);
	SCROLLBAR-SHADOW-COLOR: rgb(10, 0, 209);
	SCROLLBAR-3DLIGHT-COLOR: rgb(23, 121, 255);
	SCROLLBAR-ARROW-COLOR: rgb(2, 51, 138);
	SCROLLBAR-TRACK-COLOR: rgb(46, 131, 215);
	SCROLLBAR-BASE-COLOR: rgb(46, 131, 215);
}
</style>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link href="css/css.css" rel="stylesheet" type="text/css" />
		<script language="JavaScript" src="js/meihuaxue.js"></script>
	</head>
	<%
	   Link link = new Link();
	   LinkDAO linkDao = new LinkDAO();
	   int id = Integer.parseInt(request.getParameter("linkid"));
	   link = linkDao.findById(id);
	 %>
	<body bgcolor="#4194E7" leftmargin="0" topmargin="0" marginheight="0"
		marginwidth="0">
		<form name="form1" id="form1"
			action="/admin/managerLink.do?method=upPopAdv" enctype="MULTIPART/FORM-DATA" method="post" />
			<table cellspacing="0" cellpadding="0" align="center" width="100%"
				cellspacing="20">
				<tr>
					<td bgcolor="#0650D2" align="center" height="25" class="lm_title">
						修 改 弹 出 窗 口
					</td>
				</tr>
				<Tr>
					<td align="center">
						<table cellpadding="1" cellspacing="0" align="center" width="100%"
							class="main_table">
							<tr>
								<td>
								 <!-- 友情链接 linkId -->
								    <input type="hidden" value="<%=id %>" name="linkid"/>
								    <input type="hidden" value="asdfa" name="isAdv"/>
								    <input type="hidden" value="666" name="type"/>
									<table cellspacing="0" cellpadding="0" align="center"
										cellspacing="20" style="width: 670px; height: 263px;">
										<Tr>
											<td align="center">
												<table cellpadding="1" cellspacing="0" align="center"
													class="main_table" style="width: 768px; height: 211px;">
													<tr>
														<Td width="13%" align="right">
														  信息描述：
														</Td>
														<Td align="left" width="80%">
															<input name="webName" id="webName" size="30" value="<%=link.getWebName() %>" />
														</Td>
														
													</tr>
													<tr>
														<Td align="right">
															网址URL：
														</Td>
														<Td>
															<input name="webURL" id="webURL" size="30" value="<%=link.getWebUrl() %>" />
														</Td>
													</tr>
													 
													<tr>
														<%
															if(link.getImg()!=null && !link.getImg().equals(""))
															{ 
														%>
															<Td align="right">
															    原来图片：
															</Td>
															<Td colspan="3" height="100">
															      <img src="../<%=link.getImg() %>" width="100" height="100"><br><br>
																上传新图片:<input type="file" name="pics" id="pics"/>
															</Td>
														<% 	}else{
																%>
															<Td align="right">
															    上传新图片:
															</Td>
															<Td colspan="3" height="100">
																<input type="file" name="pics" id="pics"/>
															</Td>	
																<%
															}
														%>
													</tr>
													
													<tr>
														<td colspan="4" align="center">
															<input type="submit" value="提交" />
															<input type="reset" value="清空" />
														</td>
													</tr>
												</table>
											</td>
										</Tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</Tr>

				<tr>
					<td height="10"></td>
				</tr>
				<Tr>
					<td bgcolor="#0650D2" align="center" height="25" class="lm_title">
						Copyright 2008-2009 &copy; 登封市财政局 All Rights Reserved.
					</td>
				</Tr>

			</table>
		</form>
	</body>
</html>
<script type="text/javascript">
<!--
var message = "<%=session.getAttribute("message")%>";
if(message!=null && message!="null" && message !=""){
   alert(message);
  }
//-->
</script>
<%
	session.removeAttribute("message");
%>

